package com.zian.domain.po;

import com.baomidou.mybatisplus.annotation.*;


import java.time.LocalDateTime;
import java.io.Serializable;

import com.zian.enums.IsDeletedEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2024-09-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_index_config")
 @ApiModel(  "SysIndexConfig对象")
public class SysIndexConfig implements Serializable {


    private static final long serialVersionUID = 1L;

     @ApiModelProperty(  "首页配置项主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

     @ApiModelProperty(  "显示字符(配置搜索时不可为空，其他可为空)")
    private String configName;

     @ApiModelProperty(  "1-搜索框热搜 2-搜索下拉框热搜 3-(首页)热销商品 4-(首页)新品上线 5-(首页)为你推荐")
    private Integer configType;

     @ApiModelProperty(  "商品id 默认为0")
    private Long goodsId;

     @ApiModelProperty(  "点击后的跳转地址(默认不跳转)")
    private String redirectUrl;

     @ApiModelProperty(  "排序值(字段越大越靠前)")
    private Integer configRank;

     @ApiModelProperty(  "删除标识字段(0-未删除 1-已删除)")
    @TableLogic // 逻辑删除
    private IsDeletedEnum isDeleted;

     @ApiModelProperty(  "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

     @ApiModelProperty(  "创建者id")
    private Long createUser;

     @ApiModelProperty(  "最新修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

     @ApiModelProperty(  "修改者id")
    private Long updateUser;


}
